package com.hanamaki.selenium.day01;

import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.edge.EdgeDriver;

public class EdgeDriverTest {


    public static void main(String[] args) {

        //注册本地火狐打开的位置
        System.setProperty("webdriver.edge.driver", "C:\\Program Files (x86)\\Microsoft\\Edge\\Application\\msedgedriver.exe");

        //注册驱动
        WebDriver driver;

        //初始化
        driver = new EdgeDriver();

        driver.get("https://www.baidu.com");

        driver.findElement(By.id("kw")).sendKeys("软件测试");
        driver.findElement(By.id("su")).click();

    }
}
